#/bin/bash
CURRENT_DIR=$(cd $(dirname $0);pwd)
# 设置工作目录
export PYTHONPATH=$CURRENT_DIR
# 设置输出不缓存
export PYTHONUNBUFFERED=1
# 设置api_server日志位置
export api_server_log=$CURRENT_DIR/log/api_server.log
# 设置spider_process日志位置
export spider_log=$CURRENT_DIR/log/spider.log

# 执行api_server
/usr/bin/python3 $CURRENT_DIR/api_server/main.py --port=9001 >> $api_server_log 2>&1  

# 执行spider
# /usr/bin/python3 $CURRENT_DIR/SpiderProcess.py >> $spider_log 2>&1

